<!--  -->
<template>
  <div class="yxp-wrap">
    <router-view :key="$route.fullPath"></router-view>
    <!-- <audio ref="audio" id="reverse-audio"></audio> -->
    <translateModal></translateModal>
  </div>
</template>

<script>
import translateModal from "@/components/common/translateModal";
export default {
  components: {
    translateModal
  },
  data() {
    return {
    };
  },
  watch: {
  },
  methods: {},
  created() {
  },
  mounted() {
  },
  destroyed() {
  }
};
</script>
<style lang="less">
@keyframes move {
  0% {
    box-shadow:0px 0px 0 rgba(39,191,163,0.5);
  }
  100% {
    box-shadow:0px 0px 10px rgba(39,191,163,0.5);
  }
}
.yxp-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  background: url(../../assets/yxp-bg.png);
  background-size: 1620px 817px;
  background-repeat: no-repeat;
  background-position: center center;
}
.yxp {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.yxp-word-box {
  display: flex;
  flex-direction: column;
  position: relative;
  height: calc(100vh - 80px);
  overflow: auto;
  padding-top: 30px;
  .yxp-wordList-page-btn {
    display: block;
    width: 160px;
    height: 8vh;
    line-height: 8vh;
    font-size: 20px;
    text-align: center;
    font-weight: 400;
    color: #fff;
    margin: 0 auto;
    background: linear-gradient(
      360deg,
      rgba(71, 203, 179, 1) 0%,
      rgba(81, 211, 176, 1) 100%
    );
    box-shadow: 0px 5px 10px rgba(59, 201, 164, 0.3);
    border-radius: 10px;
    cursor: pointer;
    &:hover {
      background: linear-gradient(
        360deg,
        rgba(39, 178, 152, 1) 0%,
        rgba(52, 203, 163, 1) 100%
      );
    }
    &:active {
      background: linear-gradient(
        180deg,
        rgba(71, 203, 179, 1) 0%,
        rgba(81, 211, 176, 1) 100%
      );
    }
  }
}
@media screen and (max-width: 1200px) {
  .yxp-word {
    width: 900px;
    height: 500px;
    &-top {
      padding-top: 30px;
      &-tit {
        font-size: 16px;
      }
      &-entry {
        padding-top: 4px;
      }
    }
    &-study {
      bottom: 21px;
      width: 150px;
      height: 34px;
      line-height: 34px;
      text-align: center;
      font-size:15px;
    }
    &-main {
      margin-top: 20px;
      .word-slider {
        width: 110px;
        height: 300px;
        overflow: hidden;
      }
      &-left {
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 50px;
            height: 50px;
            margin: 0 auto;
            canvas {
              width: 50px;
              height: 50px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            line-height: 10px;
            margin-top: 10px;
          }
           &:first-child {
            margin-top: 48px;
          }
          &:last-child {
            margin-top: 56px;
          }
        }
      }
      &-right {
        .right-box {
          padding: 26px 15px 34px;
        }
        .yxp-slider-r-item,.last-item {
          height: 60px;
          .num {
            padding-top: 1px;
          }
        }
      }
      &-center {
        margin-top: 25px;
        position: relative;
        width: 230px;
        height: 230px;
        margin-left: 100px;
        margin-right: 100px;
        .center-box {
          width: 230px;
          height: 230px;
        }
        .circle-center {
          left: 50px;
          top: 50px;
          width: 130px;
          height: 130px;
          line-height:130px;
          font-size: 26px;
        }
        .circle-slider {
          width: 70px;
          height: 70px;
          line-height: 70px;
          &:nth-child(1) {
            left: 30px;
            top: -35px;
          }
          &:nth-child(2) {
            left: 130px;
            top: -35px;
          }
          &:nth-child(3) {
            left: 195px;
            top: 30px;
          }
          &:nth-child(4) {
            left: 195px;
            top: 130px;
          }
          &:nth-child(5) {
            left: 130px;
            top: 195px;
          }
          &:nth-child(6) {
            left: 30px;
            top: 195px;
          }
          &:nth-child(7) {
            left: -35px;
            top: 130px;
          }
          &:nth-child(8) {
            left: -35px;
            top: 30px;
            
          }
        }
      }
    }
  }
}
@media screen and (min-width: 1200px) and (max-width: 1620px) {
  @keyframes bigCircle {
    0% {
      transform: scale(1)
    }
    50% {
      transform: scale(1.1)
    }
    100% {
      transform: scale(1)
    }
  }
  .yxp-word {
    width: 1150px;
    height: 650px;
    &-top {
      padding-top: 26px;
      &-tit {
        font-size: 26px;
      }
      &-entry {
        padding-top: 6px;
      }
    }
    &-study {
      bottom: 30px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
    &-main {
      margin-top: 72px;
      .word-slider {
        width: 120px;
        height: 330px;
        overflow: hidden;
      }
      &-left {
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 60px;
            height: 60px;
            margin: 0 auto;
            canvas {
              width: 60px;
              height: 60px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            line-height: 10px;
            padding-top: 10px;
          }
           &:first-child {
            margin-top: 60px;
          }
          &:last-child {
            margin-top: 65px;
          }
        }
      }
      &-right {
        .right-box {
          padding: 20px 12px 0;
        }
        .yxp-slider-r-item,.last-item {
          height: 72px;
          .num {
            padding-top: 6px;
          }
        }
      }
      &-center {
        position: relative;
        width: 320px;
        height: 320px;
        margin-left: 132px;
        margin-right: 132px;
        .center-box {
          width: 320px;
          height: 320px;
        }
        .circle-center {
          left: 75px;
          top: 75px;
          width: 170px;
          height: 170px;
          line-height: 170px;
          font-size: 33px;
        }
        .circle-slider {
          width: 90px;
          height: 90px;
          line-height: 90px;
          &:nth-child(1) {
            left: 46px;
            top: -45px;
          }
          &:nth-child(2) {
            left: 182px;
            top:-45px;
          }
          &:nth-child(3) {
            left: 275px;
            top: 46px;
          }
          &:nth-child(4) {
            left: 275px;
            top: 182px;
          }
          &:nth-child(5) {
            left: 182px;
            top: 275px;
          }
          &:nth-child(6) {
            left: 46px;
            top: 275px;
          }
          &:nth-child(7) {
            left: -45px;
            top: 182px;
          }
          &:nth-child(8) {
            left: -45px;
            top: 46px;
            
          }
        }
      }
    }
  }
  // .yxp-wordList-box {
  //   padding-left: 40px;
  //   padding-right: 40px;
  //   &-item {
  //     width: 100%;
  //     .yxp-wordList-item {
  //       width: calc((100% - 40px) / 2);
  //       &:nth-child(2n + 1) {
  //         margin-right: 40px;
  //       }
  //     }
  //   }
  // }
}
@media screen and (min-width: 1620px) {
  .yxp-word {
    width: 1300px;
    height: 750px;
    &-top {
      padding-top: 60px;
      &-tit {
        font-size: 30px;
      }
      &-entry {
        padding-top: 12px;
      }
    }
    &-study {
      bottom: 50px;
      width: 170px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size:20px;
    }
    &-main {
      margin-top: 77px;
      .word-slider {
        width: 120px;
        height: 330px;
        overflow: hidden;
      }
      &-left {
        .yxp-canvas {
          width: 100%;
          text-align: center;
          .canvas-box {
            width: 60px;
            height: 60px;
            margin: 0 auto;
            canvas {
              width: 60px;
              height: 60px;
            }
          }
          .text {
            font-size: 14px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #163622;
            line-height: 0;
            padding-top: 10px;
          }
           &:first-child {
            margin-top: 68px;
          }
          &:last-child {
            margin-top: 65px;
          }
        }
      }
      &-right {
        .right-box {
          padding: 20px 12px 0;
        }
        .yxp-slider-r-item,.last-item {
          height: 72px;
          .num {
            padding-top: 6px;
          }
        }
      }
      &-center {
        width: 340px;
        height: 340px;
        margin-left: 137px;
        margin-right: 137px;
        .center-box {
          width: 340px;
          height: 340px;
        }
        .circle-center {
          left: 85px;
          top: 85px;
          width: 170px;
          height: 170px;
          line-height: 170px;
          font-size: 33px;
          &:hover {
            transform: scale(1.1);
          }
        }
        .circle-slider {
          width: 100px;
          height: 100px;
          line-height: 100px;
          &:nth-child(1) {
            left: 46px;
            top: -45px;
          }
          &:nth-child(2) {
            left: 182px;
            top:-45px;
          }
          &:nth-child(3) {
            left: 275px;
            top: 46px;
          }
          &:nth-child(4) {
            left: 275px;
            top: 182px;
          }
          &:nth-child(5) {
            left: 182px;
            top: 275px;
          }
          &:nth-child(6) {
            left: 46px;
            top: 275px;
          }
          &:nth-child(7) {
            left: -45px;
            top: 182px;  
          }
          &:nth-child(8) {
            left: -45px;
            top: 46px;
            
          }
        }
      }
    }
  }
  // .yxp-wordList-box {
  //   &-item {
  //     width: 1540px;
  //     .yxp-wordList-item {
  //       width: 750px;
  //       &:nth-child(2n + 1) {
  //         margin-right: 40px;
  //       }
  //     }
  //   }
  // }
}
.yxp-wordList-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  // width: 750px;
  
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  
}
 .yxp-wordList-box {
  position: relative;
  width: 100%;
  // height: 100%;
  // padding-top: 30px;
  // overflow: auto;
  &-item {
    // width: 1540px;
    width: 80vw;
    max-width: 750px;
    height: 100%;
    margin: 0 auto;
  }
}
.yxp-wordList-main {
  display: flex;
  flex-direction: column;
  text-align: left;
  
  .list-item {
     height:  calc((100vh - 230px) / 6); 
     min-height: 50px;
     min-width: 550px;

    // height: 90px;
    // line-height: 90px;
    transition: box-shadow 0.3s;
    &:hover {
      box-shadow: 0px 0px 10px rgba(39, 191, 163, 0.5);
    }
  }
  .active {
    .word-en,.yxp-wordList-item-l {
      font-size: 30px;
      font-weight: bold;
    }
    .word-zh,.yxp-wordList-item-r {
      font-size: 20px;
      font-weight: 400;
    }
  }
  .yxp-wordList-item-l {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    margin-right: 40px;
    padding-left: 40px;
  }
  .yxp-wordList-item-r {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 22%;
    padding-right: 40px;
    img {
      width: 30px;
      height: 30px;
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(3) {
        margin-left: 20px;
      }
    }
  }
}

.yxp-wordList-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  // height: 270px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding-bottom: 20px;
  z-index: 1300;
  .close {
      position: absolute;
      right: 20px;
      top: 15px;
      width: 20px;
      height: 20px;
      background: url(../../assets/word/close-icon.png) no-repeat;
      background-size: 20px 20px;
      cursor: pointer;
      &:hover {
        background-image: url(../../assets/word/close-hover.png);
      }
    }
  .tips {
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    padding: 96px 20px 0;
  }
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 53px;
    padding-bottom: 20px;
    .btn-item {
      width: 130px;
      height: 50px;
      line-height: 50px;
      text-align: center;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #fff;
      background: #27bfa3;
      border-radius: 100px;
      cursor: pointer;
      &:first-child {
        margin-right: 20px;
      }
      &:hover {
        background: #18A38A;
      }
    }
  }
}
.yxp-wordList-item-r {
  .success {
      width: 30px;
      height: 30px;
      background: url(../../assets/word/success.png) no-repeat;
      background-size: 100% 100%;
      img {
        width: 30px;
        height: 30px;
      }
      &:last-child {
        margin-left: 20px;
      }
      &:nth-child(2) {
        background-image: url(../../assets/word/success-normal.png)
      }
      &:nth-child(3) {
        margin-left: 20px;
        background-image: url(../../assets/word/error-normal.png)
      }
      &:nth-child(4) {
        background-image: url(../../assets/word/error-sel.png)
      }
    }
    .img2 {
      &:hover {
        background-image: url(../../assets/word/success-hover.png)
      }
    }
    .img3 {
      &:hover {
        background-image: url(../../assets/word/error-hover.png)
      }
    }
}
@media screen and (max-width: 1200px) {
  .back {
    position: static !important;
  }
  .yxp-top-r {
    position: static !important;
  }
}
.yxp-wordList-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    line-height: 80px;
    font-size: 20px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    text-align: center;
    background: #fff;
    padding: 0 40px;
  .back {
    position: absolute;
    left: 40px;
    top: 27px;
    width: 30px;
    height: 27px;
    span {
      display: block;
      width: 30px;
      height: 27px;
      background: url(../../assets/word/back-icon.png) no-repeat;
      background-size: 100%;
     cursor: pointer;
    }
  }
  .yxp-top-c {
    width: 100%;
    font-size: 20px;
    flex: 1;
    font-weight: 700;
  }
  .yxp-top-r {
    position: absolute;
    right: 40px;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
